<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja" id="main">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>TilingSprite Class</title>
	<link rel="stylesheet" href="../inc/css/style.min.css" />
	<script type="text/javascript" src="../inc/js/lib/jquery-1.11.1.min.js"></script>
	<script type="text/javascript" src="../inc/js/common.js"></script>
</head>
<body>

	<div class="main">

		<h1 class="main__title--h1 main__title--h1--v07">TilingSprite Class</h1>
		<ul class="breadcrumb">
			<li>JSライブラリ</li>
			<li>&gt;</li>
			<li>TilingSprite Class</li>
		</ul>
		<p>The sprite object for a tiling image.</p>
		<div class="main__section">
			<h2 class="main__title--h2">Constructor</h2>
<pre class="main__pre--code">
TilingSprite ( bitmap )
</pre>
			<div class="params">
				<h4>Parameters:</h4>

				<ul class="params-list">
					<li class="param">
						<code class="param-name">bitmap</code>
						<span class="type">Bitmap</span>
						<div class="param-description">
							<p>The image for the tiling sprite</p>
						</div>
					</li>
				</ul>
			</div>
		</div><!-- /main__section -->


		<div class="main__section">
			<h2 class="main__title--h2">Item Index</h2>
			<b>Methods</b>
			<ul class="main__ul--inline">
				<li><a href="#m01">move</a></li>
				<li><a href="#m02">setFrame</a></li>
				<li><a href="#m03">update</a></li>
			</ul>

			<b>Properties</b>
			<ul class="main__ul--inline">
				<li><a href="#p01">bitmap</a></li>
				<li><a href="#p02">opacity</a></li>
				<li><a href="#p03">origin</a></li>
				<li><a href="#p04">visible</a></li>
				<li><a href="#p05">x</a></li>
				<li><a href="#p06">y</a></li>
			</ul>
		</div><!-- /main__section -->


		<div class="main__section">
			<h2 class="main__title--h2">Methods</h2>

			<div id="m01" class="main__subsection">
<pre class="main__pre--code">
move ( x , y , width , height )
</pre>
				<p class="mb10px">Sets the x, y, width, and height all at once.</p>
				<div class="params">
					<h4>Parameters:</h4>
					<ul class="params-list">
						<li class="param">
							<code class="param-name">x</code>
							<span class="type">Number</span>
							<div class="param-description">
								<p>The x coordinate of the tiling sprite</p>
							</div>
						</li>
						<li class="param">
							<code class="param-name">y</code>
							<span class="type">Number</span>
							<div class="param-description">
								<p>The y coordinate of the tiling sprite</p>
							</div>
						</li>
						<li class="param">
							<code class="param-name">width</code>
							<span class="type">Number</span>
							<div class="param-description">
								<p>The width of the tiling sprite</p>
							</div>
						</li>
						<li class="param">
							<code class="param-name">height</code>
							<span class="type">Number</span>
							<div class="param-description">
								<p>The height of the tiling sprite</p>
							</div>
						</li>
					</ul>
				</div>
			</div><!-- /div -->

			<div id="m02" class="main__subsection">
<pre class="main__pre--code">
setFrame ( x , y , width , height )
</pre>
				<p class="mb10px">Specifies the region of the image that the tiling sprite will use.</p>
				<div class="params">
					<h4>Parameters:</h4>
					<ul class="params-list">
						<li class="param">
							<code class="param-name">x</code>
							<span class="type">Number</span>
							<div class="param-description">
								<p>The x coordinate of the frame</p>
							</div>
						</li>
						<li class="param">
							<code class="param-name">y</code>
							<span class="type">Number</span>
							<div class="param-description">
								<p>The y coordinate of the frame</p>
							</div>
						</li>
						<li class="param">
							<code class="param-name">width</code>
							<span class="type">Number</span>
							<div class="param-description">
								<p>The width of the frame</p>
							</div>
						</li>
						<li class="param">
							<code class="param-name">height</code>
							<span class="type">Number</span>
							<div class="param-description">
								<p>The height of the frame</p>
							</div>
						</li>
					</ul>
				</div>
			</div><!-- /div -->

			<div id="m03" class="main__subsection">
<pre class="main__pre--code">
update ()
</pre>
				<p class="mb10px">Updates the tiling sprite for each frame.</p>
			</div><!-- /div -->

		</div><!-- /main__section -->


		<div class="main__section">
			<h2 class="main__title--h2">Properties</h2>

			<div id="p01" class="main__subsection">
<pre class="main__pre--code">
bitmap <span class="pre__type">Bitmap</span>
</pre>
				<p class="mb10px">The image for the tiling sprite.</p>
			</div><!-- /div -->

			<div id="p02" class="main__subsection">
<pre class="main__pre--code">
opacity <span class="pre__type">Number</span>
</pre>
				<p class="mb10px">The opacity of the tiling sprite (0 to 255).</p>
			</div><!-- /div -->

			<div id="p03" class="main__subsection">
<pre class="main__pre--code">
origin <span class="pre__type">Point</span>
</pre>
				<p class="mb10px">The origin point of the tiling sprite for scrolling.</p>
			</div><!-- /div -->

			<div id="p04" class="main__subsection">
<pre class="main__pre--code">
visible <span class="pre__type">Boolean</span>
</pre>
				<p class="mb10px">The visibility of the tiling sprite.</p>
			</div><!-- /div -->

			<div id="p05" class="main__subsection">
<pre class="main__pre--code">
x <span class="pre__type">Number</span>
</pre>
				<p class="mb10px">The x coordinate of the tiling sprite.</p>
			</div><!-- /div -->

			<div id="p06" class="main__subsection">
<pre class="main__pre--code">
y <span class="pre__type">Number</span>
</pre>
				<p class="mb10px">The y coordinate of the tiling sprite.</p>
			</div><!-- /div -->


		</div><!-- /main__section -->


	</div><!-- /main -->

</body>
</html>